www.gusucode.com > VC++ 新手写的简单客房管理系统源码程序 > VC++ 新手写的简单客房管理系统源码程序/code/room.txt
//在文件视图中(File View),选择其中的头文件(Hearder Files) 找到头文件StdAfx.h,确保有以下代码,//MFC ODBC database classes(ODBC 数据库) #ifndef _AFX_NO_DB_SUPPORT #include<afxdb.h> #endif//_AFX_NO_DB_SUPPORT //MFC DAO database classes(DAO 数据库) #ifndef _AFX_NO_DAO_SUPPORT #include<afxdb.h> #endif//_AFX_NO_DAO_SUPPORT ************************************ long m_roomID; CString m_name; CString m_personID; CString m_sex; CTime m_logtime; long m_day; long m_cost; CString m_class; CString m_information; long m_people; ************************** int i=1; char tem[3]; for(i;i<=15;i++) { _gcvt(i,3,tem); m_num.AddString(tem); } **************************************** msg+="\r\n\n"; 一级(100元/天) 二级(70元/天) 三级(40元/天) 房间级别 **************8 头文件中 // Generated message map functions //{{AFX_MSG(CMAINTAINDLG) afx_msg void OnNext(); afx_msg void OnNew(); afx_msg void OnLendOut(); afx_msg void OnLendIn(); afx_msg void OnLast(); afx_msg void OnFirst(); afx_msg void OnExit(); afx_msg void OnEnquery(); afx_msg void OnEdit(); afx_msg void OnDelete(); afx_msg void OnCancelRec(); afx_msg void OnSave(); virtual BOOL OnInitDialog(); afx_msg void OnPrior(); //}}AFX_MSG DECLARE_MESSAGE_MAP() cpp文件 ********************************* long m_roomID; long m_daycost; CString m_state; long m_max; BOOL CMAINTAINDLG::OnInitDialog() { CDialog::OnInitDialog(); }